﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel.DataAnnotations;
using SqlSugar;

namespace SgpaServer.Model.Entities
{
    /// <summary>
    /// 员工
    /// </summary>
    //[SqlSugar.SugarTable("Employee")]
    public class Employee //: BaseEntity
    {
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
        public long Id
        {
            get; set;
        }

        [MaxLength(-1)]
        [SqlSugar.SugarColumn(ColumnName = "Name")]
        public string Name
        {
            get; set;
        }
        [MaxLength(-1)]
        [SqlSugar.SugarColumn(ColumnName = "Tel")]
        public string Tel
        {
            get; set;
        }
        [MaxLength(-1)]
        [SqlSugar.SugarColumn(ColumnName = "LoginName")]
        public string LoginName
        {
            get; set;
        }
        [MaxLength(-1)]
        [SqlSugar.SugarColumn(ColumnName = "LoginPassword")]
        public string LoginPassword
        {
            get; set;
        }
        /// <summary>
        /// 盐 9位
        /// </summary>
        [MaxLength(-1)]
        [SqlSugar.SugarColumn(ColumnName = "PasswordSalt")]
        public string PasswordSalt
        {
            get; set;
        }
        /// <summary>
        /// 是否可以登录
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "EnabledLogin")]
        public bool EnabledLogin
        {
            get; set;
        }

    }
}
